${page.setTitle("push-center| GOPS")}
<style type="text/css">
    .l-table-edit {}
    .l-table-edit-td{ padding:4px;}
    .l-button-submit,.l-button-reset{width:80px; float:left; margin-left:10px; padding-bottom:2px;}
</style>
${token()}
<div class="body-pla-content">
 <form action="" method="post" id="group" name="group">
 <input type="hidden" name="id" value="${group.id}"/>
        <table class="l-table-edit" >
            <tr>
                <td align="right" >群名称：</td>
                <td align="left" >
						<input name="name" type="text" id="name"  maxlength="30" value="${group.name}"  validate="{required:true,maxlength:30}"/>
				</td>
            </tr>  
            
            <tr>
                <td align="right" >创建人id：</td>
                <td align="left" >
						<input name="oid" type="text" id="oid"  maxlength="30" value="${group.oid}"   validate="{required:true,maxlength:30}"/>
				</td>
			 </tr> 
			 
			 
             <tr>
				 <td align="right" >备注：</td>
                <td align="left"  colspan=3>
                <textarea rows="3" cols="40" name="memo" id="memo" >${group.memo}</textarea>
				</td>
            </tr>  
            <tr>
            	<td></td>
            	<td > <input type="button" value="修改" id="dosubmit" class="l-button l-button-submit"/>  </td>
            	<td align="left"></td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">

$(function () {
	$("#dosubmit").click(function(){
		var queryString = $('#group').serializeArray();  
	    $.ajax({
	        url: "${appServer}/group/update.json",   
	        data: queryString, 
	        type: "POST",
	        success: function(result) {
	        	if(result.hasError) {
					$.ligerDialog.error(result.message);
	        	}else{
	        		$.ligerDialog.success(result.message);
	        		parent.window.search();
	        		parent.$.ligerDialog.close();
	        		parent.$.ligerDialog.hide();
	        	}
	        }
	    });	
		return true;
	});

	
});
</script>